 <script>
    function goBack(){
    window.history.back()
    }
</script>
<div class="container-fluid">
  <div>
    <h3 style="color:#8C525B;border-bottom:1px solid #F1F1F1;padding-bottom:10px;padding-left:10px;">关怀方式</h3>
  </div>
  <div class="panel panel-default">
    <div class=" panel-heading">
      <p class="panel-title" style="height:35px;line-height:35px">
                  添加关怀方式
      </p>
    </div >
    <form action="care_type.php?action=<?php
    if(isset($res)){
    echo 'update_check&ct_id='.$res['ct_id'];
    }
    else{
    echo 'add_check';
    }
    ?>" method="post" class="form-horizontal" style="margin-top:20px;">
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">关怀方式</label>
        <div class="col-sm-9">
          <input name="method" type="text" class="form-control" id="inputEmail3" placeholder="请输入关怀方式" required="required" value="<?php if(isset($res)){echo $res['ct_type'];};?>">
        </div>
      </div>
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">注意事项</label>
        <div class="col-sm-9">
          <textarea class="form-control" name="info" id="" cols="50" rows="2" placeholder="用该方式需要注意的事项"> <?php if(isset($res)){echo $res['ct_content'];}?></textarea>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button class="btn btn-primary" id="submit_btn" type="submit">提交</button>
          <button class="btn btn-info" type="reset">重置</button>
          <a class="btn btn-default" onclick="goBack()">返回</a>
        </div>
      </div>
    </form>
  </div>
</div>